package com.example.expandablelistview.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;

import com.example.expandablelistview.R;

public class CallAdd extends Activity {
	public static final String MAINTAG = "Activity Life Cycle";
	public static final String SUBTAG = "Parent";
	
	protected void onCreate(Bundle savedInstanceState) {
		
		Log.i(MAINTAG, SUBTAG + "- onCreate()");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.calladd);
        
        findViewById(R.id.calladd_btn).setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                Intent intent = new Intent("com.example.expandablelistview.activity.ADD");
                intent.putExtra("left", 3);
                intent.putExtra("right", 5);
                startActivity(intent);
            }
        });
    }

	@Override
	protected void onRestoreInstanceState(Bundle savedInstanceState) {
		Log.i(MAINTAG, SUBTAG + "- onRestoreInstanceState()");
		super.onRestoreInstanceState(savedInstanceState);
	}

	@Override
	protected void onStart() {
		Log.i(MAINTAG, SUBTAG + "- onStart()");
		super.onStart();
	}

	@Override
	protected void onRestart() {
		Log.i(MAINTAG, SUBTAG + "- onRestart()");
		super.onRestart();
	}

	@Override
	protected void onResume() {
		Log.i(MAINTAG, SUBTAG + "- onResume()");
		super.onResume();
	}

	@Override
	protected void onSaveInstanceState(Bundle outState) {
		Log.i(MAINTAG, SUBTAG + "- onSaveInstanceState()");
		super.onSaveInstanceState(outState);
	}

	@Override
	protected void onPause() {
		Log.i(MAINTAG, SUBTAG + "- onPause()");
		super.onPause();
	}

	@Override
	protected void onStop() {
		Log.i(MAINTAG, SUBTAG + "- onStop()");
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		Log.i(MAINTAG, SUBTAG + "- onDestroy()");
		super.onDestroy();
	}

	
}
